<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<%@ page language="java" contentType="text/html; charset=UTF-8"
		pageEncoding="UTF-8"%>
<html>
	<head>

		<title>${title}后台用户列表</title>
		<%@ include  file="../jsandcss.jsp"%>



</head>
<body style="width: 100%; height: 100%; padding: 0pt; overflow: hidden;">
<script type="text/javascript">
$(function(){
//在所有单元格上添加空格


$("#pageselect").change(function(){
var checkValue=$("#pageselect").val();


getpage(checkValue);


}); 
$('#Search').click(function (){

$('#useradd').submit();
}
);
$('.datagrid-body tr').hover(
  function(){
    
	    $(this).addClass("datagrid-row-over");   //鼠标经过添加hover样式
  },
  function(){
    $(this).removeClass("datagrid-row-over");   //鼠标离开移除hover样式
  }
);
$('#btn').linkbutton(options);
});
function getpage(page)
{
if(page<0)
{
page=0;
}
if(page>${page-1})
{
page=${page-1}
}
$('#Start').val(page);

$('#useradd').submit();


}
</script>
<form action="${ctx}/permi/managerlist.do" method="post" id="useradd">

		
<div  style="height:40px;margin:10px; padding-left:20px; padding-top:10px; background-color:#FFFFCC;border:2px solid #8DB2E3;">
<input type="hidden" name="Start" value="0" id="Start"/>
  <a href="${ctx}/permi/manageradd.do" class="easyui-linkbutton" plain="true" icon="icon-add">添加</a>
		<a href="#" class="easyui-linkbutton" plain="true" icon="icon-cut">删除</a>
		&nbsp;
  <select name="select" class="" panelHeight="auto" editable="flases">
    <option value="managerName">用户名：</option>
    <option value="managerXingming">真实姓名：</option>
  </select>
  &nbsp;
 <input name="name" type="text" value="${name}"/>
  开始时间：<input id="Startcreatedates" name="Startcreatedates" class="easyui-datebox" value="${Startdate}"></input>
  结束时间：<input id="endcreatedates"  name="endcreatedates" class="easyui-datebox " value="${endcreatedates}"/>
  <a href="#" class="easyui-linkbutton" icon="icon-search" id="Search">Search</a>
 
  
</div>
<div class="panel datagrid" style="width: 98%;padding:0px; margin:10px;border:1px solid #99BBE8; background-color:">

  <div class="panel-header">
    <div class="panel-title">用户列表</div>
    <div class="panel-tool"></div>
  </div>
  <div class="datagrid-wrap panel-body" title="" style="width: auto; height: auto;">
    <div class="datagrid-wrap panel-body" title="" style="width: 100%;height:auto;">
      <div class="datagrid-view" style="width:100%;height:295px;">
        
        <div class="datagrid-view2" style="width:100%; left: 0px; background-color:#FFFFFF" >
        
		  
          <div class="datagrid-body" style="width: 100%; ">
            <table cellspacing="0" cellpadding="0" border="0" width="100%;">
              <tbody>
			  <tr>
	<th scope="col" width="5%;"><input name="che" type="checkbox" value="all" /></th>
    <th scope="col" width="20%;">用户名</th>
    <th scope="col" width="20%;">真实姓名</th>
	<th scope="col" width="20%;">申请日期</th>
    <th scope="col" width="20%;">联系电话</th>
    <th scope="col" width="15%;">操作</th>
	</tr>
	<c:forEach var="manager" items="${list}">
                <tr datagrid-row-index="0" class="">
                  <td field="itemid"><div class="datagrid-cell " ><input name="managerId" type="checkbox" value="${manager.managerId}" /></div></td>
                  <td field="productid"><div class="datagrid-cell " >${manager.managerName}</div></td>
				   <td field="itemid"><div class="datagrid-cell " >${manager.managerXingming}</div></td>
                  <td field="productid"><div class="datagrid-cell " >${manager.createdates}</div></td>
				   <td field="itemid"><div class="datagrid-cell " >${manager.managerPhone}</div></td>
                  <td field="productid"><a href="#" class="easyui-linkbutton"  plain="true" icon="icon-edit" title="修改"></a><a href="#" class="easyui-linkbutton"  plain="true" icon="icon-cut" title="删除"></a><a href="#" class="easyui-linkbutton"  plain="true" icon="icon-redo" title="更多"></a></td>
                 
                </tr>
    </c:forEach>
				     <tr datagrid-row-index="0" class="">
                  <td field="itemid"><div class="datagrid-cell " ><input name="che" type="checkbox" value="all" /></div></td>
                  <td field="productid"><div class="datagrid-cell " >FI-SW-01</div></td>
				   <td field="itemid"><div class="datagrid-cell " >EST-1</div></td>
                  <td field="productid"><div class="datagrid-cell " >FI-SW-01</div></td>
				   <td field="itemid"><div class="datagrid-cell " >EST-1</div></td>
                  <td field="productid"><a href="#" class="easyui-linkbutton"  plain="true" icon="icon-edit" title="修改"></a><a href="#" class="easyui-linkbutton"  plain="true" icon="icon-cut" title="删除"></a><a href="#" class="easyui-linkbutton"  plain="true" icon="icon-redo" title="更多"></a></td>
                 
                </tr>  <tr datagrid-row-index="0" class="">
                  <td field="itemid"><div class="datagrid-cell " ><input name="che" type="checkbox" value="all" /></div></td>
                  <td field="productid"><div class="datagrid-cell " >FI-SW-01</div></td>
				   <td field="itemid"><div class="datagrid-cell " >EST-1</div></td>
                  <td field="productid"><div class="datagrid-cell " >FI-SW-01</div></td>
				   <td field="itemid"><div class="datagrid-cell " >EST-1</div></td>
                  <td field="productid"><a href="#" class="easyui-linkbutton"  plain="true" icon="icon-edit" title="修改"></a><a href="#" class="easyui-linkbutton"  plain="true" icon="icon-cut" title="删除"></a><a href="#" class="easyui-linkbutton"  plain="true" icon="icon-redo" title="更多"></a></td>
                 
                </tr>  <tr datagrid-row-index="0" class="">
                  <td field="itemid"><div class="datagrid-cell " ><input name="che" type="checkbox" value="all" /></div></td>
                  <td field="productid"><div class="datagrid-cell " >FI-SW-01</div></td>
				   <td field="itemid"><div class="datagrid-cell " >EST-1</div></td>
                  <td field="productid"><div class="datagrid-cell " >FI-SW-01</div></td>
				   <td field="itemid"><div class="datagrid-cell " >EST-1</div></td>
                  <td field="productid"><a href="#" class="easyui-linkbutton"  plain="true" icon="icon-edit" title="修改"></a><a href="#" class="easyui-linkbutton"  plain="true" icon="icon-cut" title="删除"></a><a href="#" class="easyui-linkbutton"  plain="true" icon="icon-redo" title="更多"></a></td>
                 
                </tr>  <tr datagrid-row-index="0" class="">
                  <td field="itemid"><div class="datagrid-cell " ><input name="che" type="checkbox" value="all" /></div></td>
                  <td field="productid"><div class="datagrid-cell " >FI-SW-01</div></td>
				   <td field="itemid"><div class="datagrid-cell " >EST-1</div></td>
                  <td field="productid"><div class="datagrid-cell " >FI-SW-01</div></td>
				   <td field="itemid"><div class="datagrid-cell " >EST-1</div></td>
                  <td field="productid"><a href="#" class="easyui-linkbutton"  plain="true" icon="icon-edit" title="修改"></a><a href="#" class="easyui-linkbutton"  plain="true" icon="icon-cut" title="删除"></a><a href="#" class="easyui-linkbutton"  plain="true" icon="icon-redo" title="更多"></a></td>
                 
                </tr>  <tr datagrid-row-index="0" class="">
                  <td field="itemid"><div class="datagrid-cell " ><input name="che" type="checkbox" value="all" /></div></td>
                  <td field="productid"><div class="datagrid-cell " >FI-SW-01</div></td>
				   <td field="itemid"><div class="datagrid-cell " >EST-1</div></td>
                  <td field="productid"><div class="datagrid-cell " >FI-SW-01</div></td>
				   <td field="itemid"><div class="datagrid-cell " >EST-1</div></td>
                  <td field="productid"><a href="#" class="easyui-linkbutton"  plain="true" icon="icon-edit" title="修改"></a><a href="#" class="easyui-linkbutton"  plain="true" icon="icon-cut" title="删除"></a><a href="#" class="easyui-linkbutton"  plain="true" icon="icon-redo" title="更多"></a></td>
                 
                </tr>  <tr datagrid-row-index="0" class="">
                  <td field="itemid"><div class="datagrid-cell " ><input name="che" type="checkbox" value="all" /></div></td>
                  <td field="productid"><div class="datagrid-cell " >FI-SW-01</div></td>
				   <td field="itemid"><div class="datagrid-cell " >EST-1</div></td>
                  <td field="productid"><div class="datagrid-cell " >FI-SW-01</div></td>
				   <td field="itemid"><div class="datagrid-cell " >EST-1</div></td>
                  <td field="productid"><a href="#" class="easyui-linkbutton"  plain="true" icon="icon-edit" title="修改"></a><a href="#" class="easyui-linkbutton"  plain="true" icon="icon-cut" title="删除"></a><a href="#" class="easyui-linkbutton"  plain="true" icon="icon-redo" title="更多"></a></td>
                 
                </tr>  <tr datagrid-row-index="0" class="">
                  <td field="itemid"><div class="datagrid-cell " ><input name="che" type="checkbox" value="all" /></div></td>
                  <td field="productid"><div class="datagrid-cell " >FI-SW-01</div></td>
				   <td field="itemid"><div class="datagrid-cell " >EST-1</div></td>
                  <td field="productid"><div class="datagrid-cell " >FI-SW-01</div></td>
				   <td field="itemid"><div class="datagrid-cell " >EST-1</div></td>
                  <td field="productid"><a href="#" class="easyui-linkbutton"  plain="true" icon="icon-edit" title="修改"></a><a href="#" class="easyui-linkbutton"  plain="true" icon="icon-cut" title="删除"></a><a href="#" class="easyui-linkbutton"  plain="true" icon="icon-redo" title="更多"></a></td>
                 
                </tr>  <tr datagrid-row-index="0" class="">
                  <td field="itemid"><div class="datagrid-cell " ><input name="che" type="checkbox" value="all" /></div></td>
                  <td field="productid"><div class="datagrid-cell " >FI-SW-01</div></td>
				   <td field="itemid"><div class="datagrid-cell " >EST-1</div></td>
                  <td field="productid"><div class="datagrid-cell " >FI-SW-01</div></td>
				   <td field="itemid"><div class="datagrid-cell " >EST-1</div></td>
                  <td field="productid"><a href="#" class="easyui-linkbutton"  plain="true" icon="icon-edit" title="修改"></a><a href="#" class="easyui-linkbutton"  plain="true" icon="icon-cut" title="删除"></a><a href="#" class="easyui-linkbutton"  plain="true" icon="icon-redo" title="更多"></a></td>
                 
                </tr>  <tr datagrid-row-index="0" class="">
                  <td field="itemid"><div class="datagrid-cell " ><input name="che" type="checkbox" value="all" /></div></td>
                  <td field="productid"><div class="datagrid-cell " >FI-SW-01</div></td>
				   <td field="itemid"><div class="datagrid-cell " >EST-1</div></td>
                  <td field="productid"><div class="datagrid-cell " >FI-SW-01</div></td>
				   <td field="itemid"><div class="datagrid-cell " >EST-1</div></td>
                  <td field="productid"><a href="#" class="easyui-linkbutton"  plain="true" icon="icon-edit" title="修改"></a><a href="#" class="easyui-linkbutton"  plain="true" icon="icon-cut" title="删除"></a><a href="#" class="easyui-linkbutton"  plain="true" icon="icon-redo" title="更多"></a></td>
                 
                </tr>
                
              </tbody>
            </table>
          </div>
         
		 
        </div>
      
      </div>
    </div>
	
    <div class="datagrid-pager pagination">
      <table cellspacing="0" cellpadding="0" border="0">
        <tbody>
          <tr>
            <td>
			<select class="pagination-page-list" id="pageselect">
			
<c:forEach   var="i"   begin="0"   end="${page-1}"   step="1">  
           
          <option value="${i}" <c:if test="${i==start}">selected="selected"</c:if>>${(i+1)*10}</option>
           
  </c:forEach> 
            </select>
			</td>
			
         
			
            <td><a icon="pagination-first" href="javascript:getpage(0)" class="l-btn l-btn-plain"><span class="l-btn-left"><span class="l-btn-text"><span class="l-btn-empty pagination-first">&nbsp;</span></span></span></a></td>
			
            <td><a icon="pagination-prev" href="javascript:getpage(${start-1})" class="l-btn l-btn-plain"><span class="l-btn-left"><span class="l-btn-text"><span class="l-btn-empty pagination-prev">&nbsp;</span></span></span></a></td>
			
            <td><div class="pagination-btn-separator"></div></td>
			
            <td><span style="padding-left: 6px;">第</span></td>
            <td><input type="text" size="2" value="${start+1}" class="pagination-num"></td>
            <td><span style="padding-right: 6px;">共${page}页</span></td>
			
            <td><div class="pagination-btn-separator"></div></td>
			
            <td><a icon="pagination-next" href="javascript:getpage(${start+1})" class="l-btn l-btn-plain"><span class="l-btn-left"><span class="l-btn-text"><span class="l-btn-empty pagination-next">&nbsp;</span></span></span></a></td>
			
            <td><a icon="pagination-last" href="javascript:getpage(${page-1})" class="l-btn l-btn-plain"><span class="l-btn-left"><span class="l-btn-text"><span class="l-btn-empty pagination-last">&nbsp;</span></span></span></a></td>
			
            <td><div class="pagination-btn-separator"></div></td>
			
            <td><a icon="pagination-load" href="javascript:void(0)" class="l-btn l-btn-plain"><span class="l-btn-left"><span class="l-btn-text"><span class="l-btn-empty pagination-load">&nbsp;</span></span></span></a></td>
			
          </tr>
		  
        </tbody>
      </table>
      <div class="pagination-info">显示${start*limit+1}到
      <c:choose>
<c:when test="${(count/limit)-start<1}">
   ${count}
   </c:when>
  <c:otherwise> 
   ${(start+1)*limit }
   </c:otherwise>
  
</c:choose>
      
      
      ,总数${count}</div>
	  
    
    </div>
  </div>
</div>
</form>

<script type="text/javascript">
jQuery('#useradd').validate();
</script>
</body>
</html>
